<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class home extends CI_Controller {
	function __construct(){
		parent::__construct();
		$this->load->model('mdata');
		$this->sesina = unserialize(base64_decode($this->session->userdata('ses_data')));
		$this->captcha = $this->session->userdata('captcha');
		$this->load->library('pagination');
	}
	
	public function index()
	{
		if($this->sesina){
			$data=$this->sesina;
			
			$data['slot_propinsi']  = "YES";
			$data['slot_kabupaten'] = "YES";
			$data['modul']='home';
			
			show('modul/welcome',$data);
		}
		
		else{
			$data["pesan"]="";
			$data["user"]="";
			$data["pass"]="";
			$this->load->view('login',$data);
		}
	}
	
	
	
}